package com.xindacloud.sms.console;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
@SpringBootApplication
public class MessageConsoleManagerApplication {

    public static void main(String[] args) {
    	
        SpringApplication.run(MessageConsoleManagerApplication.class, args);
    }
    

    @Bean
    public CommonsMultipartResolver getCommonsMultipartResolver() {
    	CommonsMultipartResolver resolver = new CommonsMultipartResolver();
    	resolver.setDefaultEncoding("UTF-8");
    	resolver.setMaxUploadSize(5242880);
    	resolver.setMaxInMemorySize(40960);
    	resolver.setResolveLazily(true);
    	return resolver;
    }

}
